"""Skeleton code for a player.

Used as a base for constructing other player objects.

"""
import Game
from exceptions import Exception

class  PlayerError(Exception):
	"""Exception class for player."""
	def __init__(self,args=None):
		self.args=args



class Player:
	"""Skeleton class for implementing a player object."""
	def __init__(self):
		"""Initiates player.
		Makes connection to game and handles requests from the game.

		"""
		raise PlayerError,'Implement Player class'

	def chooseMove(self):
		"""Decide on a move and sent it back."""
		raise BoardError,'Implement chooseMove'

	def fetchBoad(self):
		"""Get a copy of the current game board."""
		raise BoardError,'Implement fetchBoard'

	def receiveAnnnouncement(self,announcement):
		"""Receive an announcement from the game."""
		raise BoardError,'Implement receiveAnnouncement'

	def sendRequest(self,request):
		"""Send a request to the game."""
		raise BoardError,'Implement sendRequest'
